<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/6/006
 * Time: 11:25
 */

namespace app\admin\validate;


use think\Validate;

class Node extends Validate
{
    protected $rule = [
        'node_title'  =>  'require|chs',

        'type' =>  'require',
        'describe' =>  'require',
    ];

    protected $message = [
        'node_title.require'  =>  '请填写规则名称',
        'node_title.chs'  =>  '规则名称只能为汉字',
        'type.require' =>  '请选择规则类型',
        'describe.require' =>  '请填写规则描述',
    ];
}